package com.demo.function.excel.easyexcel.pojo;

import org.apache.commons.collections4.CollectionUtils;
import org.apache.poi.ss.formula.functions.T;

import java.util.ArrayList;
import java.util.List;

public class ValidateResult<T> {

    private List<T> successList = new ArrayList<>();
    private List<T> failList = new ArrayList<>();

    public List<T> getSuccessList() {
        return successList;
    }

    public List<T> getFailList() {
        return failList;
    }

    public boolean hasFail() {
        return CollectionUtils.isNotEmpty(failList);
    }
}
